package com.shop.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.shop.dao.CartDao;
import com.shop.domain.Cart;
import com.shop.service.CartService;
import com.shop.util.page.Filter;
import com.shop.util.page.MySort;
import com.shop.util.page.Page;
import com.shop.util.page.Pageable;

/**
 * 
 * @author wenjuanhenxing
 * @version V1.0 CartServiceImpl.java 2016-4-25 下午5:52:49
 */
@Service("cartServiceImpl")
public class CartServiceImpl implements CartService {

	@Resource(name = "cartDaoImpl")
	private CartDao cartDao;

	@Override
	public Cart find(Long id) {
		return null;
	}

	@Override
	public List<Cart> findAll() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Cart> findList(Integer count, List<Filter> filters,
			List<MySort> orders) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Cart> findList(Integer first, Integer count,
			List<Filter> filters, List<MySort> orders) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Page<Cart> findPage(Pageable pageable) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public long count() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public long count(Filter... filters) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public boolean exists(Long id) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean exists(Filter... filters) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public void save(Cart entity) {
		cartDao.addCart(entity);

	}

	@Override
	public Cart update(Cart entity) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Cart update(Cart entity, String... ignoreProperties) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void delete(Long id) {
		// TODO Auto-generated method stub

	}

	@Override
	public void delete(Long... ids) {
		// TODO Auto-generated method stub

	}

	@Override
	public void delete(Cart entity) {
		// TODO Auto-generated method stub

	}

}
